export function getUserInfo() {

  const userInfo = wx.getStorageSync('userInfo');
  const permission = wx.getStorageSync('permission');
  const roles = wx.getStorageSync('roles');

  return {
    ...userInfo,
    permission,
    roles
  }
}